home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1994 November / macformat-018.iso / Utility Spectacular / Developer / Marlais 0.3.1 / gc4.1-mac / PCR-Makefile < prev    next >
Encoding:
Makefile  |  1994-07-26  |  1.5 KB  |  47 lines  |  [TEXT/R*ch]

  1. OBJS= alloc.o reclaim.o allchblk.o misc.o mach_dep.o os_dep.o mark_rts.o headers.o mark.o obj_map.o pcr_interface.o blacklst.o finalize.o new_hblk.o real_malloc.o dynamic_load.o dbg_mlc.o malloc.o stubborn.o
  2.  
  3. CSRCS= reclaim.c allchblk.c misc.c alloc.c mach_dep.c os_dep.c mark_rts.c headers.c mark.c obj_map.c pcr_interface.c blacklst.c finalize.c new_hblk.c real_malloc.c dynamic_load.c debug_mlc.c malloc.c stubborn.c
  4.  
  5. SHELL= /bin/sh
  6.  
  7. # Fix to point to local pcr installation directory.
  8. PCRDIR= /project/ppcr/dev
  9. CC= gcc
  10. CFLAGS= -g -DPCR -I$(PCRDIR) -I$(PCRDIR)/ansi -I$(PCRDIR)/posix
  11.  
  12. # We assume that mach_dep.o has already been built by top level makefile.  It doesn't
  13. # care about pcr vs UNIX, and we don't want to repeat that cruft.
  14.  
  15. default: gc.o
  16.  
  17. all: gc.o test.o gcpcr
  18.  
  19. gcpcr: gc.o test.o $(PCRDIR)/base/pcr.o $(PCRDIR)/base/PCR_BaseMain.o
  20.     $(CC) -o gcpcr $(PCRDIR)/base/pcr.o $(PCRDIR)/base/PCR_BaseMain.o gc.o test.o -ldl
  21.  
  22. gc.o: $(OBJS)
  23.     -ld -r -o gc.o $(OBJS)
  24.  
  25. #
  26. # Dependency construction
  27. #
  28. # NOTE: the makefile must include "# DO NOT DELETE THIS LINE" after the
  29. #   last target.  "make depend" will replace everything following that line
  30. #   by a newly-constructed list of dependencies.
  31. #
  32. depend: $(CSRCS)
  33.     rm -f makedep eddep ; \
  34.     $(CC) -M $(CFLAGS) $(CSRCS) \
  35.             | sed -e '/:$$/d' > makedep ; \
  36.     echo '/^# DO NOT DELETE THIS LINE/+1,$$d' >eddep ; \
  37.     echo '$$r makedep' >>eddep ; \
  38.     echo 'w' >>eddep ; \
  39.     cp PCR-Makefile PCR-Makefile.bak ; \
  40.     ex - PCR-Makefile < eddep ; \
  41.     rm -f eddep makedep
  42.     touch depend
  43.     
  44. # DO NOT DELETE THIS LINE
  45.  
  46.  
  47.